import request from '@/utils/request';

/**
 * 创建校验码
 */
export const create = params => {
  return request({
    url: '/admin/captcha/create',
    data: params,
    method: 'post'
  });
};
/**
 * 获取验证码
 */
export const sendValidCode = params => {
  return request({
    url: '/ext/user/sendValidCode',
    data: params,
    method: 'post'
  });
};
